/*
 * Copyright (c) 2024 Fujian Newland Auto-ID Tech.Co.,Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
export const MAX_DISCOUNT: number = 0.2 // 最大折扣

export const MAX_DISCOUNT_PRICE: number = 1 - MAX_DISCOUNT // 折扣价

export enum PageName {
  INDEX = 'index', // 首页
  CHECK = 'check', // 商品盘点界面
  DETAILS = 'details', // 详情页面
  DUEBOOK = 'duebook' // 图书到期页面
}

export enum TypeFromCard {
  SEARCH_BOOK = 'search_book', // 查找图书
  DUE_BOOK = 'due_book' // 到期图书
}